package org.leon.service.impl;

import org.leon.mapper.AccountMapper;
import org.leon.pojo.Account;
import org.leon.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountServiceImpl implements AccountService {

    private AccountMapper accountMapper;

    @Autowired
    public AccountServiceImpl(AccountMapper accountMapper) {
        this.accountMapper = accountMapper;
    }

    public List<Account> queryAccountList() {
        return accountMapper.queryAccountList();
    }
}
